<template>
  <div>
    <!-- 使用params参数 要用params对象 -->
    <div>{{id}}</div>
    <div>{{title}}</div>
  </div>
</template>

<script>
export default {
  name: "my-detail",
  props:['id','title']
}
</script>

<style scoped>

</style>